/*
 * @Description: 钱包API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2024-01-18 17:24:19
 */
import http from '@/utils/http/axios'

export function getItemList(params) {
  return http.request({
    url: '/finance/get_money',
    method: 'GET',
    params
  })
}
export function getOrderList(params) {
  return http.request({
    url: '/finance/order_list',
    method: 'GET',
    params
  })
}
export function getInvoiceList(params) {
  return http.request({
    url: '/finance/invoice_order',
    method: 'GET',
    params
  })
}
export function getSysInvoiceList(params) {
  return http.request({
    url: '/finance/sys_invoice_order',
    method: 'GET',
    params
  })
}
export function getSuccessOrderList(params) {
  return http.request({
    url: '/finance/success_order_list',
    method: 'GET',
    params
  })
}

export function editInvoiceSetting(params) {
  return http.request(
    {
      url: '/finance/editInvoiceSetting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function submitInvoiceSq(params) {
  return http.request(
    {
      url: '/finance/doInvoiceSq',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getInvoiceCom(params) {
  return http.request({
    url: '/finance/getInvoiceSetting',
    method: 'GET',
    params
  })
}
export function calcInvoiceMoney(params) {
  return http.request(
    {
      url: '/finance/calc_invoice_total',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function doRecharge(params) {
  return http.request(
    {
      url: '/finance/doRecharge',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
